package com.syq.dao;




import com.syq.entity.Admin;
import com.syq.page.PageInfo;

import java.util.List;

public interface AdminDao {
    public List<Admin>  getAllAdmins() throws Exception;
    Integer deleteAdminByAno(String ano) throws Exception;
    Integer updateAdminByAno(Admin admin) throws Exception;
    Integer addAdmin(Admin admin) throws Exception;
    public List<Admin> getAdminByPage(PageInfo pageInfo) throws Exception;
    public String getMaxAno();
//    public Admin selectAdminWithChildren(String cno);
//    Admin getAdminWithOrdrees(String cno)throws Exception;
//    Admin getAccountByAccountName(String cname);
//    public List<Admin> getAdminByExample(String cname);
//    Integer updateAdmin(Admin admin)  throws Exception;
//    public Integer updateByPrimaryKeySelective(Admin admin);

    public Integer updateAdmins(Admin admin);


}
